/** 
 * FunProgram.java
 * @author Lex
 * 2007-8-20 ����02:17:26
 */
package fun.parser.ast.node;

import fun.parser.EvaluationException;
import fun.parser.ast.node.base.AstNode;
import fun.parser.ast.node.base.Expression;
import fun.symtable.SymbolTable;

public class FunProgram extends AstNode {
    protected Expression expression = null;

    public FunProgram(Expression expression) {
	super(null);
	this.expression = expression;
    }

    public Expression getExpression() {
	return this.expression;
    }

    @Override
    public double getValue(SymbolTable symtable) throws EvaluationException {
	return this.expression.getValue(symtable);
    }

}
